﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace SPPD.model
{
    public class pegawaiMap : ClassMap<pegawai>
    {
        public pegawaiMap()
        {
            Id(x => x.id_pegawai);
            Map(x => x.nama);
            Map(x => x.bagian);
            Map(x => x.alamat);
            Map(x => x.tempat_lahir);
            Map(x => x.tanggal_lahir);
            References(x => x.divisi).Cascade.All();
        }
    }
}
